﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HKEA.CMS.Core.Utility;
using HKEA.CMS.Core.Models;
namespace HKEA.CMS.Core.IDAL.Mtbl
{
    public interface ImtblCustType
    {

        /// <summary>
        /// 根据表的id获取一条记录
        /// </summary>
        /// <param name="uid">表的uid</param>
        /// <returns>一个实体（一条记录）</returns>
        mtblCustType GetEntity(int uid);

        /// <summary>
        /// 根据实体组合参数获取一条记录
        /// </summary>
        /// <param name="ent">实体参数</param>
        /// <returns>一个实体（一条记录）</returns>
        mtblCustType GetEntity(mtblCustType ent);

        int InsertENT(mtblCustType ent);

        List<mtblCustType> GetListByENT(mtblCustType ent, PageParam param, string strPropertyName,string strOrderBy);

        List<mtblCustType> GetListByENT(mtblCustType ent);

        int GetCountByENT(mtblCustType ent);

        int UpdateENT(mtblCustType ent);

        int DeleteENT(mtblCustType ent);
    }
}
